package com.itcast.controlier;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/books")
public class Controller {
    @GetMapping("/{id}")
    public String getid(Integer id) {
        System.out.println(id);
        return "helloSpringboot";
    }
}
